/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.lottery.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 活动奖品管理Entity
 * @author Muser
 * @version 2019-07-31
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Prize extends DataEntity<Prize> {
	
	private static final long serialVersionUID = 1L;
	@JsonIgnore
	private String activityId;		// 活动编号
	private Integer sort;		// 排序序号
	private String description;		// 奖品等级
	private String name;		// 奖品名称
	private Integer quantity;		// 数量
	
	public Prize() {
		super();
	}

	public Prize(String id){
		super(id);
	}

	@Length(min=0, max=64, message="活动编号长度必须介于 0 和 64 之间")
	public String getActivityId() {
		return activityId;
	}

	public void setActivityId(String activityId) {
		this.activityId = activityId;
	}
	
	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}
	
	@Length(min=0, max=255, message="奖品等级长度必须介于 0 和 255 之间")
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	
	@Length(min=0, max=255, message="奖品名称长度必须介于 0 和 255 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public Integer getQuantity() {
		return quantity;
	}

	public void setQuantity(Integer quantity) {
		this.quantity = quantity;
	}
	
}